package com.cloudcreativity.blyg.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * 时间工具
 */
public class DateUtils {
    private static final String YYYY_MM_DD_HH_MM_SS = "HHHH-mm-DD HH:MM:SS";

    /**
     * 返回最基本的日期时间字符串
     * @return 2019-12-12 23:30:00
     */
    public static String getSimpleDateTimeStr(){
        SimpleDateFormat format = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS, Locale.CHINA);
        return format.format(new Date());
    }
}
